﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace HongStone.Repository.Migrations
{
    public partial class gaii7 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "YearBonus",
                columns: table => new
                {
                    YearBonusId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    StaffId = table.Column<int>(type: "int", nullable: false),
                    DeptTiao = table.Column<int>(type: "int", nullable: false),
                    GongSiTiao = table.Column<int>(type: "int", nullable: false),
                    ProjectSum = table.Column<int>(type: "int", nullable: false),
                    DeptSum = table.Column<int>(type: "int", nullable: false),
                    ProjectSalary = table.Column<int>(type: "int", nullable: false),
                    DeptSalary = table.Column<int>(type: "int", nullable: false),
                    ProjectManager = table.Column<int>(type: "int", nullable: false),
                    YouYuan = table.Column<int>(type: "int", nullable: false),
                    Tu = table.Column<int>(type: "int", nullable: false),
                    BIM = table.Column<int>(type: "int", nullable: false),
                    RegistSalary = table.Column<int>(type: "int", nullable: false),
                    Bu = table.Column<int>(type: "int", nullable: false),
                    Yu = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_YearBonus", x => x.YearBonusId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "YearBonus");
        }
    }
}
